<%@page import="com.wef.demo.entity.domain.StudentSubjectDomain"%>
<%@page import="com.wef.demo.entity.domain.StudentDomain"%>
<%@page import="com.wef.demo.entity.domain.SubjectDomain"%>
<%@page import="com.gfa4j.resource.ResourceManagerServer"%>
<%@page import="com.wef.common.util.CommonMessageDomain"%>
<%@page import="com.gfa4j.query.Field"%>
<%@ include file="/pages/common/taglib.jsp"%>
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
		<title></title>
		<%@include file="/styles/css_lib.jsp"%>
		<%@include file="/scripts/widgets/jquery-ui/css_lib.jsp"%>
		<%@include file="/scripts/widgets/jqgrid/css_lib.jsp"%>
		<%@include file="/scripts/widgets/autoSelect/css_lib.jsp"%>
		
		<%@include file="/pages/common/js_global.jsp"%>
		<%@include file="/scripts/sdk/js_lib.jsp"%>
		<%@include file="/scripts/config/js_lib.jsp" %>
		<%@include file="/scripts/utils/js_lib.jsp"%>
		<%@include file="/scripts/i18n/js_lib.jsp"%>
		<%@include file="/scripts/format/js_lib.jsp"%>
		<%@include file="/scripts/validate/js_lib.jsp"%>
		<%@include file="/scripts/widgets/jquery-ui/js_lib.jsp"%>
		<%@include file="/scripts/widgets/jqgrid/js_lib.jsp"%>
		<%@include file="/scripts/widgets/autoSelect/js_lib.jsp"%>
		<%@include file="/scripts/widgets/datePicker/js_lib.jsp"%>
		<%@include file="/scripts/widgets/page-custom/js_lib.jsp"%>
		<script type="text/javascript" src="./demo_student_subject.js"></script>
		
		<k:jqgrid 
			queryObjectName="<%=StudentSubjectDomain.StudentSubject%>"
		 	jsonReader="{id:'studentSubjectId'}"
		 	colModel="[{name:'studentSubjectId',hidden:true},
		 		{label:'demo.StudentSubject.subjectName',name:'subjectName'},
		 		{label:'demo.Student.studentId',name:'studentId',formatterFunction:'fmStudentId',jsonmap:'student',sortable:false},
		 		{label:'demo.Student.studentName',name:'studentName',formatterFunction:'fmStudentName',jsonmap:'student',sortable:false},
		 		{label:'demo.Student.studentNum',name:'studentNum',formatterFunction:'fmStudentNum',jsonmap:'student',sortable:false},
		 		{label:'demo.Student.birthday',name:'birthday',formatterFunction:'fmBirthday',jsonmap:'student',sortable:false}
		 		]"		 		
			id="StudentSubject_table" 
			searchBtnId="searchBtnStudentSubject"
			saveBtnId="saveBtnStudentSubject" 
			newBtnId="newBtnStudentSubject"
			cancelBtnId="cancelBtnStudentSubject"
			deleteBtnId="deleteBtnStudentSubject"
			clearBtnId="clearBtnStudentSubject" 
			resetBtnId="resetBtnStudentSubject"
			searchFormName="searchFormStudentSubject"
			serviceMethodName="saveOrUpdateStudentSubjects"
			serviceName="StudentSubjectService"
			searchFormId="StudentSubject_search_Form"
			initProps="student"
			beforeLoad="setStudentSubject"
			enabledLoad="false" 
			forceFit="true" 
			shrinkToFit="false"
	 	/>
		 	
		<script type="text/javascript">
			//App.pageCustomEnable = true;App.pageId = "jqgrid";
			$(window).ready(function(){
				$('div[accordion=true]').accordion({collapsible : true});
				$('div[tabGroup=true]').tabs();
				$('#pageLoadComplete').attr('isComplete',true);
			});
		</script>
	</head>
<body class="body">
	<div id="divAccordion1" accordion="true">
		<h1><a href="#"><%=ResourceManagerServer.getInstance().getMessage(StudentSubjectDomain.StudentSubjectNLS)%>&nbsp;<%=ResourceManagerServer.getInstance().getMessage(CommonMessageDomain.TITLE_EDIT)%></a></h1>
		<div>
			<form id="searchFormStudentSubject" name="searchFormStudentSubject">
				<ul id="StudentSubject_search_Ul" class="search_box" accordion="true">				
					<li>
						<k:label text="demo.Student.birthday" />
						<k:date styleId="StudentSubject_search_birthday_date" dateFormat="yyyy-MM-dd HH:mm" property="" styleClass="text"/>
					</li>
					<li>
						<k:label text="到" />
						<k:date styleId="StudentSubject_search_birthday_date2" property="" styleClass="text"  dateFormat="yyyy-MM-dd HH:mm"/>
					</li>
				</ul>
			</form>
		</div>
	</div>
		
		
		
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul class="button_box">
			<li>
				<k:button styleId="searchBtnStudentSubject" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" text="<%=CommonMessageDomain.BUTTON_SEARCH%>"/>
			</li>
			<li>
				<k:button styleId="saveBtnStudentSubject" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" text="<%=CommonMessageDomain.BUTTON_SAVE%>"/>
			</li>
			<li>
				<k:button styleId="clearBtnStudentSubject" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" text="<%=CommonMessageDomain.BUTTON_CLEAR%>"/>
			</li>
			<li>
				<k:button styleId="newBtnStudentSubject" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" text="<%=CommonMessageDomain.BUTTON_NEW%>"/>
			</li>
			<li>
				<k:button styleId="cancelBtnStudentSubject" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" text="<%=CommonMessageDomain.BUTTON_CANCEL%>"/>
			</li>
			<li>
				<k:button styleId="deleteBtnStudentSubject" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" text="<%=CommonMessageDomain.BUTTON_DELETE%>"/>
			</li>
		</ul>
	</div>
	
	<div id="divAccordion3" accordion="true">
		<h1><a href="#"><%=ResourceManagerServer.getInstance().getMessage(StudentSubjectDomain.StudentSubjectNLS)%>&nbsp;<%=ResourceManagerServer.getInstance().getMessage(CommonMessageDomain.TITLE_TABLE)%></a></h1>
		<div>
			<table id="StudentSubject_table"></table>
		</div>
	</div>

	<div id="pageLoadComplete" isComplete="false" style="display: none;"></div>
</body>
</html>